import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'

const app = createApp(App)
const pinia = createPinia()

app.use(ElementPlus)
app.use(pinia)
app.use(router)

// 挂载应用
app.mount('#app')

// 等待下一个 tick 后检查初始化状态
import { nextTick } from 'vue'

nextTick(() => {
  console.log('Vue app mounted, checking initialization status...')
  console.log('window.electronAPI available:', !!window.electronAPI)
  
  if (window.electronAPI) {
    console.log('Electron API methods available:', Object.keys(window.electronAPI))
  }
}) 